package com.exam.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "考试-题目辅助类")
public class ExamQuestion {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("编号")
    private Integer id;

    @TableField("exam_id")
    @ApiModelProperty("考试id")
    private Integer examId;

    @TableField("question_id")
    @ApiModelProperty("题目id")
    private Integer questionId;

    @ApiModelProperty("分数")
    private Double score;

    @ApiModelProperty("是否是副本")
    private Boolean changed;

    @ApiModelProperty("大题号")
    private Integer bigQid;

    @ApiModelProperty("小题号")
    private Integer smallQid;

    @ApiModelProperty("大题题型")
    private String bigType;

    @TableField(exist = false)
    private Exam exam;

    @TableField(exist = false)
    private Question question;
}
